<?php
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

/** @var \Magento\Customer\Block\Adminhtml\Sales\Order\Address\Form\Renderer\Vat $block */

$_element = $block->getElement();
$_note = $_element->getNote();
$_class = $_element->getFieldsetHtmlClass();
$_validateButton = $block->getValidateButton();
?>
<?php if (!$_element->getNoDisplay()): ?>
<div class="admin__field field-vat-number">
    <?php if ($_element->getType() == 'hidden'): ?>
    <div class="hidden"><?php echo $_element->getElementHtml(); ?></div>
    <?php else: ?>
    <?php echo $_element->getLabelHtml(); ?>
    <div class="admin__field-control <?php /* @noEscape */ echo $_element->hasValueClass() ? $block->escapeHtmlAttr($_element->getValueClass()) : 'value'; ?><?php echo $_class ? $block->escapeHtmlAttr($_class) . '-value' : ''; ?>">
        <?php echo $_element->getElementHtml(); ?>
        <?php if ($_note): ?>
            <div class="admin__field-note<?php echo $_class ? " {$_class}-note" : ''; ?>" id="note_<?php echo $block->escapeHtmlAttr($_element->getId()); ?>">
                <span><?php echo $block->escapeHtml($_note); ?></span>
            </div>
        <?php endif; ?>
        <div class="actions">
            <?php echo $_validateButton->toHtml(); ?>
        </div>
    </div>
    <?php endif; ?>
</div>
<?php endif; ?>
